//
// Created on 2025/6/15.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef VARINT_STREAM_H
#define VARINT_STREAM_H

#include "stdint.h"
#include <cstddef>

typedef struct varint_stream_s {
    const uint8_t *next_in = nullptr;
    size_t avail_in = 0;
    uint8_t *next_out = nullptr;
    size_t avail_out = 0;
    uint8_t pos = 0;
    uint64_t value = 0;
} varint_stream;

#endif // VARINT_STREAM_H
